package com.luoyuanxiangvip.admin.core.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author luoyuanxiang <p>luoyuanxiangvip.com</p>
 * @since 2019/5/27 10:19
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "LoginVo对象", description = "登录对象")
public class LoginVo implements Serializable {

    private static final long serialVersionUID = 7158840114330656683L;
    @ApiModelProperty(value = "登陆名")
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
